package io.github.uicdb.gravity_generator.data;

import io.github.uicdb.gravity_generator.GGRegistries;
import io.github.uicdb.gravity_generator.GGUtils;
import net.minecraft.core.Registry;
import net.minecraft.data.DataGenerator;
import net.minecraft.data.tags.BlockTagsProvider;
import net.minecraft.data.tags.TagsProvider;
import net.minecraft.tags.BlockTags;
import net.minecraft.world.level.block.Block;
import net.minecraftforge.common.data.ExistingFileHelper;
import org.jetbrains.annotations.Nullable;

public class GGBlockTagGenerator extends BlockTagsProvider {
    protected GGBlockTagGenerator(DataGenerator dataGenerator,ExistingFileHelper existingFileHelper) {
        super(dataGenerator, GGUtils.MODID, existingFileHelper);
    }

    @Override
    protected void addTags() {
        tag(BlockTags.NEEDS_IRON_TOOL).add(GGRegistries.GRAVITY_GENERATOR.get());
        tag(BlockTags.NEEDS_DIAMOND_TOOL).add(GGRegistries.HARMLESS_GRAVITY_GENERATOR.get());
    }

    @Override
    public String getName() {
        return "GGBlockTagGenerator";
    }
}
